import Layout from '@/views/layout'

export default {
    path: '/subjects',
    name:'subjects',
    component: Layout,
    meta: {
        title: '学科管理'
    },
    redirect: '/subjects/list',
    children: [
    {
        path: 'list',
        name: 'subjects-list',
        component: () => import('@/views/subjects/list'),
        meta: {
            title: '学科'
        }
    },
    
    {
        path: 'directorys',
        name: 'subjects-directorys',
        component: () => import('@/views/subjects/directorys'),
        meta: {
            title: '目录'
        },
        children: [
            {
                path: 'directorys/:id/:name',
                component: () => import('@/views/subjects/directorys'),
                meta: {
                    title: '目录'
                }
            },
        ]
    },     
    {
        path: 'tags',
        name: 'subjects-tags',
        component: () => import('@/views/subjects/tags'),
        meta: {
            title: '标签'
        },
        children: [
            {
                path: 'tags/:id/:name',
                name:'tags',
                component: () => import('@/views/subjects/tags'),
                meta: {
                    title: '目录'
                }
            },
        ]
    }
    ]
}
